from google.appengine.ext import db
from com.jumang.model.FileCategory import PictureCategory

class Picture(db.Model):
    name=db.StringProperty(required=True)
    displayName=db.StringProperty(required=False)
    isPublic=db.BooleanProperty()
    describe=db.TextProperty(required=False)
    content=db.BlobProperty(required=False)
    createTime=db.DateTimeProperty(auto_now_add=True)
    jumCategory=db.ReferenceProperty(PictureCategory)
    width=db.IntegerProperty(required=False)
    height=db.IntegerProperty(required=False)
    displayWidth=db.IntegerProperty(required=False)
    displayHeight=db.IntegerProperty(required=False)

        
        
